import request from '@/utils/request'

// 查询cod应付账单列表
export function listVouch(query) {
  return request({
    url: '/bmsystem/vouch/list',
    method: 'get',
    params: query
  })
}

// 查询cod应付账单详细
export function getVouch(id) {
  return request({
    url: '/bmsystem/vouch/' + id,
    method: 'get'
  })
}

// 新增cod应付账单
export function addVouch(data) {
  return request({
    url: '/bmsystem/vouch',
    method: 'post',
    data: data
  })
}

// 修改cod应付账单
export function updateVouch(data) {
  return request({
    url: '/bmsystem/vouch',
    method: 'put',
    data: data
  })
}

// 删除cod应付账单
export function delVouch(id) {
  return request({
    url: '/bmsystem/vouch/' + id,
    method: 'delete'
  })
}
